<?php
	
	/**
	 * Verifies bootstrapper execution to ensure file
	 * necessities, and disabling direct access
	 */
	defined('ENGINE') or exit;
	
	/**
	 * Module management class;  Manage the loading, information
	 * and permissions associated with every module
	 */
	final class Template
	{
		/**
		 * Private instance to the Engine registry
		 */
		protected $engine;
		
		/**
		 * Stores the directory name of the curent
		 * template in use
		 */
		protected $template;
		
		/**
		 * Stores the templating resource directory
		 */
		protected $directory;
		
		/**
		 * Constructor, instanciates the user of the templating
		 * system, allowing the modules to display with gui friendly
		 * code
		 */
		public function __construct()
		{
			$this->directory = TEMPLATES_DIR;
			$this->template = 'default';
		}
		
		public function display()
		{
			echo file_get_contents($this->directory . DIRECTORY_SEPARATOR . $this->template . DIRECTORY_SEPARATOR . 'index.html');
		}
	}
	
?>